package com.liumuxian.exam.pojo;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@Entity
@Table(name = "tb_examperformance")
public class ExamPerformance implements Serializable {
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "userid",length = 20)
    private String userid;
    @Column(name = "examinfoid")
    private String examinfoid;
    @Column(name = "score",length = 20)
    private Long score;

    @Column(name = "accuracy",length = 20)
    private String accuracy;

    @Column(name = "errorrate",length = 20)
    private String errorrate;

    @Column(name = "state",length = 1)
    private Integer state;//状态（0代表删除，1开始考试，2代表结束考试,3代表过期）
    @Column(name = "creatdate")
    private Date creatdate;
    @Column(name = "updatedate")
    private Date updatedate;

    @Transient
    private List<ExamPerformanceData> epdlist;
}
